<?php

class IndexController extends GTL_Action {

    public function init() {
        parent::init();
        /* Initialize action controller here */
    }

    public function indexAction() {
        
        if($this->USER->role == 'CONTRACTOR'){
            $this->_helper->redirector('dashboard', 'contractor', 'default');
        }else if ($this->USER->role == 'ADMIN'){
            $this->_helper->redirector('dashboard', 'admin', 'default');
        }else{
            $this->_helper->redirector('dashboard', 'customer', 'default');
        }
    }
    
    public function unauthorizedAction() {

    }


}

?>
